package viz.demo.crh5

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Toast
import com.tencent.smtt.sdk.QbSdk
import viz.commonlib.crh5.BrowserActivity
import viz.commonlib.crh5.CRH5Utils

class MainActivity : AppCompatActivity(){
    val TAG = "MainActivity"
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        if(!CRH5Utils.isInited()) {
            Toast.makeText(this, "正在初始化中", Toast.LENGTH_LONG).show()
        }
    }

    fun openMeetingDemo(view: View) {
        if(CRH5Utils.isInited()) {
            val intent = Intent(this, BrowserActivity::class.java)
            startActivity(intent)
        } else {
            Toast.makeText(this,"初始化未完成",Toast.LENGTH_LONG).show()
        }
    }
}